﻿/* Copyright (C) 2008-2009 Jorson.WHY
 * All right reserved
 * ********** Project Info ***********
 * Project Name : Common
 * NameSpace : MyLibrary.ExtendAttributes
 * Filename : ExtendAttributes
 * Create Time : 4/14/2008 8:15:23 PM
 * ********** Environment Info *******
 * Machine Name : EA-01504-11220
 * CLR Version : 2.0.50727.1433
 */

namespace MyLibrary.ExtendAttributes
{
    #region System Using
    using System;
    using System.Collections.Generic;
    using System.Text;
    #endregion

    /// <summary>
    /// 所有扩展属性的基础类
    /// </summary>
    internal class ExtendAttributesBase : Attribute
    {
        private string _caption = String.Empty;
        /// <summary>
        /// 标题
        /// </summary>
        public string Caption
        {
            get { return _caption; }
            set { _caption = value; }
        }

        protected string _hintMessage = String.Empty;
        /// <summary>
        /// 提示信息
        /// </summary>
        internal string HintMessage
        {
            get { return String.Concat(_caption,":",_hintMessage); }
        }

        public ExtendAttributesBase()
        {
        }

        public ExtendAttributesBase(string caption)
        {
            this._caption = caption;
        }
    }
}
